﻿<%@ Page Title="" Language="C#" MasterPageFile="~/master/admin.master" AutoEventWireup="true" CodeFile="view.aspx.cs" Inherits="aspx_admin_teacher_view" %>

<asp:Content ID="Content1" ContentPlaceHolderID="Title" runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="HeadContent" runat="Server">
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="MainContent" runat="Server">
    <asp:GridView ID="GridView1" runat="server" AllowPaging="True"
        AllowSorting="True" AutoGenerateColumns="False" CellPadding="4"
        DataKeyNames="名师ID" DataSourceID="ods名师风采"
        ForeColor="#333333" GridLines="None"
        OnRowEditing="GridView1_RowEditing" PageSize="16" Width="100%" 
        OnRowDeleting="GridView1_RowDeleting">
        <AlternatingRowStyle BackColor="White" ForeColor="#284775" />
        <Columns>

            <asp:BoundField DataField="名师ID" HeaderText="名师ID" InsertVisible="False"
                ReadOnly="True" SortExpression="名师ID" />
            <asp:HyperLinkField DataNavigateUrlFields="名师ID"
                DataNavigateUrlFormatString="../../teacher/one.aspx?id={0}" DataTextField="姓名"
                HeaderText="姓名" SortExpression="姓名" Target="_blank" />
            <asp:BoundField DataField="名师等级" HeaderText="名师等级" SortExpression="名师等级" />
            <asp:CheckBoxField DataField="校内" HeaderText="校内" SortExpression="校内" />
            <asp:CheckBoxField DataField="显示在首页" HeaderText="显示在首页"
                SortExpression="显示在首页" />
            <asp:BoundField DataField="重要性" HeaderText="重要性" SortExpression="重要性" />
            <asp:CommandField ShowEditButton="True" />
            <asp:CommandField ShowDeleteButton="True" />
        </Columns>
        <EditRowStyle BackColor="#999999" />
        <FooterStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
        <HeaderStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
        <PagerStyle BackColor="#284775" ForeColor="White" HorizontalAlign="Center" />
        <RowStyle BackColor="#F7F6F3" ForeColor="#333333" />
        <SelectedRowStyle BackColor="#E2DED6" Font-Bold="True" ForeColor="#333333" />
    </asp:GridView>
    <asp:ObjectDataSource ID="ods名师风采" runat="server" DeleteMethod="Delete"
        InsertMethod="Insert" OldValuesParameterFormatString="original_{0}"
        SelectMethod="GetData" TypeName="ds_名师讲堂TableAdapters.tb_名师风采TableAdapter"
        UpdateMethod="Update">
        <DeleteParameters>
            <asp:Parameter Name="Original_名师ID" Type="Int32" />
        </DeleteParameters>
        <InsertParameters>
            <asp:Parameter Name="名师等级" Type="String" />
            <asp:Parameter Name="校内" Type="Boolean" />
            <asp:Parameter Name="姓名" Type="String" />
            <asp:Parameter Name="虚目录" Type="String" />
            <asp:Parameter Name="简介" Type="String" />
            <asp:Parameter Name="显示在首页" Type="Boolean" />
        </InsertParameters>
        <UpdateParameters>
            <asp:Parameter Name="名师等级" Type="String" />
            <asp:Parameter Name="校内" Type="Boolean" />
            <asp:Parameter Name="姓名" Type="String" />
            <asp:Parameter Name="虚目录" Type="String" />
            <asp:Parameter Name="简介" Type="String" />
            <asp:Parameter Name="显示在首页" Type="Boolean" />
            <asp:Parameter Name="Original_名师ID" Type="Int32" />
        </UpdateParameters>
    </asp:ObjectDataSource>
</asp:Content>